Feature: 镜像管理

  Scenario: 镜像常规增删改查
    Given 删除以下镜像源
      | name |
      | demo |
    And 删除以下镜像
      | name       |
      | demo_image |
    And 删除以下资源配额
      | name |
      | demo |
    And 新增镜像源,信息如下
      | name | registry           | enable |
      | demo | registry-svc:25000 | 1      |
    And 在镜像源[demo]下新增镜像,信息如下
      | name    | version | git_url                                                     | note    | status | ide_type |
      | jupyter | 1.0.0   | https://gitee.com/mega-lab/jupyterlab-tensorflow-docker.git | Jupyter | 1      | 0        |
      | vscode  | 1.0.0   | https://gitee.com/mega-lab/vscode-tensorflow-docker.git     | VSCode  | 1      | 1        |
      | idea-c  | 1.0.0   | https://gitee.com/mega-lab/idea-c-docker.git                | Idea    | 1      | 2        |
    And 编辑镜像源[demo]下的镜像[demo_image],信息如下
      | name    | version | git_url                                                     | note    | status | ide_type |
      | jupyter | 1.0.0   | https://gitee.com/mega-lab/jupyterlab-tensorflow-docker.git | Jupyter | 0      | 0        |
      | vscode  | 1.0.0   | https://gitee.com/mega-lab/vscode-tensorflow-docker.git     | VSCode  | 0      | 1        |
      | idea-c  | 1.0.0   | https://gitee.com/mega-lab/idea-c-docker.git                | Idea    | 0      | 2        |
    And 删除以下镜像
      | name    |
      | jupyter |
      | vscode  |
      | idea-c  |
    And 删除以下镜像源
      | name |
      | demo |